package com.wn.service.impl;

import com.wn.dao.PermissionDao;
import com.wn.entity.Manager;
import com.wn.entity.Permission;
import com.wn.service.PermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class PermissionServiceImpl implements PermissionService {
    @Autowired
    PermissionDao permissionDao;

    @Override
    public void addOne(Permission permission) {
        permissionDao.addOne(permission);
    }

    @Override
    public void deleteOne(Permission permission) {
        permissionDao.deleteOne(permission);

    }

    @Override
    public void update(Permission permission) {
        permissionDao.update(permission);

    }

    @Override
    public List<Permission> findAll() {
        return permissionDao.findAll();
    }
}
